import request from "@/utils/request";

export default {
  getMenus() {
    return request({
      url: `/menu/list`,
      method: "get",
    });
  },
  getByRoleName(roleNames) {
    return request({
      url: `/menu/getByRoleName`,
      method: "post",
      data: roleNames,
    });
  },
};
